<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Gme\V20180711\Models;
use TencentCloud\Common\AbstractModel;

/**
 * Output parameters of `CreateApp`
 *
 * @method integer getBizId() Obtain Application ID, automatically generated by the backend.
 * @method void setBizId(integer $BizId) Set Application ID, automatically generated by the backend.
 * @method string getAppName() Obtain Application name, the input of `AppName`.
 * @method void setAppName(string $AppName) Set Application name, the input of `AppName`.
 * @method integer getProjectId() Obtain Project ID, the input of `ProjectId`.
 * @method void setProjectId(integer $ProjectId) Set Project ID, the input of `ProjectId`.
 * @method string getSecretKey() Obtain Application key, used to initialize GME SDK.
 * @method void setSecretKey(string $SecretKey) Set Application key, used to initialize GME SDK.
 * @method integer getCreateTime() Obtain Timestamp, indicating when the service is created.
 * @method void setCreateTime(integer $CreateTime) Set Timestamp, indicating when the service is created.
 * @method RealtimeSpeechConf getRealtimeSpeechConf() Obtain Configuration information of Voice Chat
 * @method void setRealtimeSpeechConf(RealtimeSpeechConf $RealtimeSpeechConf) Set Configuration information of Voice Chat
 * @method VoiceMessageConf getVoiceMessageConf() Obtain Configuration information of Voice Messaging
 * @method void setVoiceMessageConf(VoiceMessageConf $VoiceMessageConf) Set Configuration information of Voice Messaging
 * @method VoiceFilterConf getVoiceFilterConf() Obtain Configuration information of Voice Analysis Service
 * @method void setVoiceFilterConf(VoiceFilterConf $VoiceFilterConf) Set Configuration information of Voice Analysis Service
 * @method AsrConf getAsrConf() Obtain Configuration information of Speech-to-Text
 * @method void setAsrConf(AsrConf $AsrConf) Set Configuration information of Speech-to-Text
 */
class CreateAppResp extends AbstractModel
{
    /**
     * @var integer Application ID, automatically generated by the backend.
     */
    public $BizId;

    /**
     * @var string Application name, the input of `AppName`.
     */
    public $AppName;

    /**
     * @var integer Project ID, the input of `ProjectId`.
     */
    public $ProjectId;

    /**
     * @var string Application key, used to initialize GME SDK.
     */
    public $SecretKey;

    /**
     * @var integer Timestamp, indicating when the service is created.
     */
    public $CreateTime;

    /**
     * @var RealtimeSpeechConf Configuration information of Voice Chat
     */
    public $RealtimeSpeechConf;

    /**
     * @var VoiceMessageConf Configuration information of Voice Messaging
     */
    public $VoiceMessageConf;

    /**
     * @var VoiceFilterConf Configuration information of Voice Analysis Service
     */
    public $VoiceFilterConf;

    /**
     * @var AsrConf Configuration information of Speech-to-Text
     */
    public $AsrConf;

    /**
     * @param integer $BizId Application ID, automatically generated by the backend.
     * @param string $AppName Application name, the input of `AppName`.
     * @param integer $ProjectId Project ID, the input of `ProjectId`.
     * @param string $SecretKey Application key, used to initialize GME SDK.
     * @param integer $CreateTime Timestamp, indicating when the service is created.
     * @param RealtimeSpeechConf $RealtimeSpeechConf Configuration information of Voice Chat
     * @param VoiceMessageConf $VoiceMessageConf Configuration information of Voice Messaging
     * @param VoiceFilterConf $VoiceFilterConf Configuration information of Voice Analysis Service
     * @param AsrConf $AsrConf Configuration information of Speech-to-Text
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("BizId",$param) and $param["BizId"] !== null) {
            $this->BizId = $param["BizId"];
        }

        if (array_key_exists("AppName",$param) and $param["AppName"] !== null) {
            $this->AppName = $param["AppName"];
        }

        if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
            $this->ProjectId = $param["ProjectId"];
        }

        if (array_key_exists("SecretKey",$param) and $param["SecretKey"] !== null) {
            $this->SecretKey = $param["SecretKey"];
        }

        if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
            $this->CreateTime = $param["CreateTime"];
        }

        if (array_key_exists("RealtimeSpeechConf",$param) and $param["RealtimeSpeechConf"] !== null) {
            $this->RealtimeSpeechConf = new RealtimeSpeechConf();
            $this->RealtimeSpeechConf->deserialize($param["RealtimeSpeechConf"]);
        }

        if (array_key_exists("VoiceMessageConf",$param) and $param["VoiceMessageConf"] !== null) {
            $this->VoiceMessageConf = new VoiceMessageConf();
            $this->VoiceMessageConf->deserialize($param["VoiceMessageConf"]);
        }

        if (array_key_exists("VoiceFilterConf",$param) and $param["VoiceFilterConf"] !== null) {
            $this->VoiceFilterConf = new VoiceFilterConf();
            $this->VoiceFilterConf->deserialize($param["VoiceFilterConf"]);
        }

        if (array_key_exists("AsrConf",$param) and $param["AsrConf"] !== null) {
            $this->AsrConf = new AsrConf();
            $this->AsrConf->deserialize($param["AsrConf"]);
        }
    }
}
